package com.getword.mongodao;

import com.getword.domain.Article;
import com.mongodb.DBObject;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

public interface ArticleOperations {
    Page<Article> findAllPage(Example<Article> example, DBObject fields, Pageable pageable);
    /**
     * 根据文章标题、关键词查询文章 分页
     * {title, }
     */
    Page<Article> findByTitleAndKeywords(String title, String keywords, Pageable page);
}
